<template>
    <a-form-item class="form-column" :label="label" :name="name" :rules="rule">
        <slot />
    </a-form-item>
</template>
<script setup lang="ts">
defineProps({
    label: {
        type: String,
        default: ''
    },
    name: {
        type: String,
        default: ''
    },
    inline: {
        type: Boolean,
        default: true
    },
    rule: {
        type: Array,
        default: () => []
    }
})
</script>
<style lang="scss">
.form-column {
    margin-right: 16px !important;
    margin-bottom: 16px !important;
    .el-form-item__label {
        padding-right: 5px !important;
    }
}
</style>
